package com.kevin.springboot.prototype.demo1;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Video implements Cloneable{

    private String name;
    /**
     * LocalDateTime没有实现Cloneable接口不支持克隆
     */
    private LocalDateTime createTime;



    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
